home *** CD-ROM | disk | FTP | other *** search
/ SGI Varsity Update 1998 August / SGI Varsity Update 1998 August.iso / dist / SpeedShop.idb / usr / demos / SpeedShop / linpack / Makefile.z / Makefile
Makefile  |  1998-07-29  |  997b  |  64 lines

  1. #!smake
  2.  
  3. include ./options
  4.  
  5. #if ($(LD_OPTS) == "-o32 -lexc")
  6.   LDFLAGS=-lexc
  7. #endif
  8.  
  9.  
  10. .SUFFIXES: .f_orig .f .anl
  11.  
  12. HEADERS=    \
  13.     $(NULL)
  14.  
  15. TARGETS = \
  16.     linpackup \
  17.     linpackd \
  18.     $(NULL)
  19.  
  20. .f_orig.f:
  21.     cp $*.f_orig  $*.f
  22.     chmod 664 $*.f
  23.  
  24. default all: targets
  25.  
  26. linpackup.f: linpack.f_orig
  27.     cp linpack.f_orig linpackup.f
  28.     chmod 664 linpackup.f
  29.  
  30. linpackup: second.o linpackup.f
  31.     f77 $(OPTS) -o linpackup linpackup.f second.o $(LDFLAGS)
  32.  
  33. linpackd: second.o linpack.f
  34.     f77 $(OPTS) -pfa keep -o linpackd linpack.f second.o $(LDFLAGS)
  35.  
  36. second.o: second.c
  37.     cc $(OPTS) -c second.c
  38.  
  39. targets: $(TARGETS)
  40.  
  41. clean clobber:
  42.     -rm -f *.m *.f *.anl *.L \
  43.         *.o $(TARGETS) core*
  44.     -rm -f OUT.*
  45.     -rm -f OUTup.*
  46.     -rm -f *.pix*
  47.     -rm -f *.usertime.*
  48.     -rm -f *.pcsamp.*
  49.     -rm -f *.fpcsamp.*
  50.     -rm -f *.pcsampx.*
  51.     -rm -f *.fpcsampx.*
  52.     -rm -f *.ideal.*
  53.     -rm -f *.heap.*
  54.     -rm -f *.fpe.*
  55.     -rm -f *_hwc.*
  56.     -rm -f make.out
  57.     -rm -f linpack.l
  58.     -rm -f *STATUS_LOG
  59.     -rm -f *.io.*
  60.     -rm -f *_hwctime.*
  61.     -rm -f *.totaltime.*
  62.     -rm -f *.Counts*
  63.     
  64.